package com.xyh.dao;

import com.xyh.pojo.Blog;
import com.xyh.vo.BlogQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BlogMapper extends BaseDao<Blog>{

    List<Blog> getPageByCondition(BlogQuery blog);

    List<Blog> getRecommendBlogsTop(int size);

    List<Blog> getPageSearch(String query);

    void updateView(Long id);

    List<Blog> getBlogByTagId(Long tagId);

    List<String> findGroupYear();

    List<Blog> getBlogByYear(String year);
}